images | NN 3 IE 4 DOM n/a | ||||
An array of all IMG objects contained by the document. This object is implemented only in browser versions that treat images as objects. Therefore, you can use the existence of this array object as a conditional switch surrounding statements that swap or preload images: if (document.images) { } Internet Explorer 3 for the Macintosh provided support for images as objects. | |||||
Object Model Reference
|
length | NN 3 IE 4 DOM n/a |
Read-only | |
Returns the number of elements in the collection. | |
Examplevar howMany = document.images.length | |
Value Integer. |
item( ) | NN n/a IE 4 DOM n/a | ||||
item(index[, subindex]) Returns a single object or collection of objects corresponding to the element matching the index value (or, optionally, the index and subindex values). | |||||
Returned Value One object or collection (array) of objects. If there are no matches to the parameters, the returned value is null. | |||||
Parameters
|